<template>
	<!-- 循环对象 -->
	<div v-for="(value,key) in custom">
		<p>{{key}}:{{value}}</p>
	</div>
	<hr>
	<div v-for=' (item,index) in objList[0]' :key='index'>
		<p>{{index}}:{{item}}</p>
	</div>
</template>

<script setup>
	import {reactive} from 'vue'
	// 定义对象
	const custom=reactive({cname:'小吴',sex:'男',age:22})
	
	const objList=reactive([
		{id:1,flowername:'荷花'},
		{id:2,flowername:'牵牛花'},
		{id:3,flowername:'梅花'},
		{id:4,flowername:'月桂'},
	])
</script>

<style>
</style>